//
//  CPSCMarkAttributedStringTools.h
//  CollTest
//
//  Created by codew on 11/18/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CPSCMarkAttributedStringTools : NSObject

/**
 商品名字, 带"限时秒杀" 那种
 https://codesign.qq.com/s/7VXl9Or85mj8WRA/nGaV96pBpNZPqwd
 */
+ (NSAttributedString *)attributedStringWithMarkTitle:(NSString *)markTitle contentText:(NSString *)contentText;

/**
 商品名字, 带"限时秒杀" 那种
 https://codesign.qq.com/s/7VXl9Or85mj8WRA/nGaV96pBpNZPqwd
 */
+ (NSMutableAttributedString *)attributedStringWithMarkImage:(UIImage *)image
                                          imageBounds:(CGRect)imageBounds
                                          contentText:(NSString *)contentText
                                            lineSpacingValue:(CGFloat)lineSpacingValue;
/**
 原价 中划线
 */
+ (NSAttributedString *)attributedStringOriginalPrice:(NSString *)price
                                           unitString:(NSString *)unitString
                                      lineContainUnit:(BOOL)lineContainUnit;


+ (CGSize)sizeLabelToFit:(NSAttributedString *)aString
                   width:(CGFloat)width
                  height:(CGFloat)height;


@end

NS_ASSUME_NONNULL_END
